import axios from "@/request/request.js";
import qs from "qs"

export const JinpinAPI = () => axios.get("/products/recommend")

export const RemenAPI = () => axios.get('/products/hot')

export const SendSMSAPI = (params) => axios.post('/sendSMS', qs.stringify(params))

export const PhoneReginAPI = (params) => axios.post('/phoneRegin', qs.stringify(params))

export const WxLoginAPI = (params) => axios.post('/wechatUsers/PCLogin', qs.stringify(params))

export const BindingAPI = (params) => axios.post('/wechatUsers/binding', qs.stringify(params))


export const UserAPI = (params) => axios.get('/shop/userProfiles', qs.stringify(params))

export const DetailsAPI = (id) => axios.get(`/products/${id}`)